package java_thinking.unit_11._11_9;

import java_thinking.net.mindview.util.TextFile;

import java.util.Set;
import java.util.TreeSet;

/**
 * @Description : 打开一个文件，并将文件内的字符按顺序排列
 * @author: cww
 * @DateTime: 2019-03-17 22:51
 */

public class UniqueWords {
    public static void main(String[] args) {
        Set<String> words = new TreeSet<String>(new TextFile("test.txt","\\W+"));
        System.out.println(words);
    }
}
